package com.humanmonth.home.component.page.portal
{
	import flash.events.Event;
	
	import mx.core.IDataRenderer;
	import mx.events.FlexEvent;

	/**
	 * 门户单元格的渲染器
	 * @author 林子龙
	 * 
	 */
	public class PanelRenderAs extends PanelRender implements IDataRenderer
	{
		private var _data:Object;
		public function PanelRenderAs()
		{
			super();
			this.addEventListener(FlexEvent.CREATION_COMPLETE,myInit);
		}
		
		private function myInit(event:Event):void{
			this.initData();
		}
		
		private function initData():void{
			this.myPanel.title=this._data.title;
		}
		
		override public function get data():Object
		{
			return _data;
		}
		
		override public function set data(value:Object):void
		{
			this._data=value;
		}
		
	}
}